<admintpl file="header" />
<script type="text/javascript" charset="UTF-8" src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/artDialog.source.js.js"></script>
<script type="text/javascript" charset="UTF-8" src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/plugins/iframeTools.source.js"></script>
</head>
<body style="min-width: 800px;">
<div class="" >
    <div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('commentadmin/index')}">视频素材库</a></li>
		</ul>
    <form class="well form-search" method="get" >
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="Weme" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
                    <input type="hidden" name="type" value="{$search.type}" />
                    &nbsp;昵称 :
                    <input name="author" type="text" class="input-text" size="15" value="{$search.author}" />
                    </select>
                    
                        
                     <span class="select_shelter"> 
                                <select name="status" class="order_select " style="width:112px;">
                                    <option value="">状态</option>
                                    <volist name="status" id="val">
                                        <if condition="$key egt 0">
                                            <option value="{$key}"
                                            <if condition="$search[status] eq $key">selected</if>
                                            >{$val}</option>
                                        </if>
                                    </volist>
                                </select>
								</span>
                        
时间：
			<input type="text" name="stime" class="js-datetime" value="{$search.stime}" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime" name="etime" value="{$search.etime}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
                    <input type="submit" name="search" class="btn btn-primary" value="搜索" />
    </form>
    
    <div class="J_tablelist table_list" data-acturi="">
    <table class="table table-hover table-bordered table-list">
        <thead>
			<tr>
                <th width="120" align="left">ID</th>             
                <th width="120" align="left">昵称</th> 
                <th width="100" align="left">视频地址</th>
                <th width="120" align="left">视频拍摄时间</th>
                <th width="120" align="left">地区</th>
                <th width="120" align="left">使用状态</th>
                <th width="50"align="left">管理操作</th>
                
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
            <tr>
            <td align="left">{$val.id}</td>
            <td align="left">{$val.nickname}</td>
            <td><a href="{$val.url}" target="_blank">{$val.url}</a></td>
          <td>{$val.mtime|date='Y-m-d H:i:s',###}</td>
          <td>长治</td>
          <td>{$val.status|sp_get_status}</td>
           <td> <a href="javascript:void(0);" onclick="send_weme({$val['id']},7);">转发</a> |
            <a href="javascript:void(0);" onclick="deleted({$val['id']});">删除</a>
           </td>
            </tr>
            </volist>
        
    	</tbody>
    </table>
    <div class="btn_wrap_fixed">
        <!-- <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('user_recharge/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" /> -->
        <div id="pages" class="pagination">{$page}</div>
    </div>

    </div>
</div>
</body>
</html>
<script src="__PUBLIC__/js/common.js"></script>
<script>

        function send_weme(id,type){
                var title='发布到图文直播';
                    if(type==1){
                            title='发布到汇友圈';
                    }
                    if(type==7){
                            title='转发';
                            var urlVal = '/Weme/send_weme/id/'+id+'/type/'+type;
                            art.dialog.open(urlVal, {
                             width:'730px',
                             height:'530px',
                             title:title,
                            }); 
                            return false;
                    }
                    
                var urlVal = '/Weme/send_weme/id/'+id+'/type/'+type;
                art.dialog.open(urlVal, {
                 width:'730px',
                 height:'530px',
                 title:title,
                });  
       }
</script>
